Speak Journal Prompt(s)
(11 actions, 13 KB)
0 Get Dictionary from
[Shortcut Input]
➔ inputDict
»
1
2
3
7
1 If
[0 inputDict
.opener
]
has any value
2 DataJar > GetValueIntent »
3
4
keyPath
:
My Text Files.journalPromptOpeners.
[0 inputDict
.opener
]
3 ToolboxProForShortcuts > PluraliseIntent »
count
:
[0 inputDict
.numberOfItems
]
word
:
[2 Value
as Dictionary.noun
]
4 Replace Text
{{PLACEHOLDER}}
with
[3 Pluralised Result]
in
[2 Value
as Dictionary.opener
]
»
ReplaceTextCaseSensitive
:
false
5 Add
[4 Updated Text]
to Variable
transcripts
6 End If
7 Run Shortcut
Get Random Journal Prompt Item(s)
»
Input
:
[0 inputDict]
Workflow
:
{ "workflowIdentifier": "B9AD53B7-9843-4075-9386-FC80989F9C27", "workflowName": "Get Random Journal Prompt Item(s)", "isSelf": false }
8 Add
[7 Shortcut Result]
to Variable
transcripts
9 Dictionary »
{ "text": "
[transcripts]
", "language": "EN", "wait": 2 }
10 Run Shortcut
_Text2Speech
Input
:
[9 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }